package com.tieland.xunda.common.sys;

import org.picocontainer.MutablePicoContainer;
import org.picocontainer.DefaultPicoContainer;
import com.tieland.xunda.system.SystemInjector;

import java.util.Set;
import java.util.HashSet;
import java.util.Iterator;

/**
 * User: qiukx
 * Date: 2008-7-29
 * Company: Freshpower
 * Description:
 */
public final class ServerInjector {
    public static void injectToServerContext(){
        new ServerInjector().inject();
    }

    private void inject(){
        for(BaseInjector injector : injectors){
            injector.inject();
        }
    }

    private static Set<BaseInjector> injectors;

    static{
        injectors = new HashSet<BaseInjector>();
        injectors.add(new SystemInjector());
    }
}
